<?php
namespace Demomodule\ShopRepository\Pojo;
class User{
    public $id;
    public $name;
    public $email;
    //构造函数
    public function __construct($id,$name,$email){
        $this->id=$id;
        $this->name=$name;
        $this->email=$email;
    }
    //toString方法
    public function __toString(){
        return "User[id=$this->id,name=$this->name,email=$this->email]";
    }
}